package com.johnny.data;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class Game28MathInfo extends Info{

	/**
	 * 
	 */
	private static final long serialVersionUID = -4470049766132484574L;

	private int[] bankerCards;
	private int[] door1Cards;
	private int[] door2Cards;
	private int[] door3Cards;
	private Game28MathResult door1Result;
	private Game28MathResult door2Result;
	private Game28MathResult door3Result;
	
	
	public int[] getBankerCards() {
		return bankerCards;
	}


	public void setBankerCards(int[] bankerCards) {
		this.bankerCards = bankerCards;
	}


	public int[] getDoor1Cards() {
		return door1Cards;
	}


	public void setDoor1Cards(int[] door1Cards) {
		this.door1Cards = door1Cards;
	}


	public int[] getDoor2Cards() {
		return door2Cards;
	}


	public void setDoor2Cards(int[] door2Cards) {
		this.door2Cards = door2Cards;
	}


	public int[] getDoor3Cards() {
		return door3Cards;
	}


	public void setDoor3Cards(int[] door3Cards) {
		this.door3Cards = door3Cards;
	}


	public Game28MathResult getDoor1Result() {
		return door1Result;
	}


	public void setDoor1Result(Game28MathResult door1Result) {
		this.door1Result = door1Result;
	}


	public Game28MathResult getDoor2Result() {
		return door2Result;
	}


	public void setDoor2Result(Game28MathResult door2Result) {
		this.door2Result = door2Result;
	}


	public Game28MathResult getDoor3Result() {
		return door3Result;
	}


	public void setDoor3Result(Game28MathResult door3Result) {
		this.door3Result = door3Result;
	}


	@Override
	public JSONObject toJsonObject() {
		JSONObject object=new JSONObject();
		object.put("bankerCards", JSONArray.fromObject(bankerCards));
		object.put("door1Cards", JSONArray.fromObject(door1Cards));
		object.put("door2Cards", JSONArray.fromObject(door2Cards));
		object.put("door3Cards", JSONArray.fromObject(door3Cards));
		object.put("door1Result", door1Result);
		object.put("door2Result", door2Result);
		object.put("door3Result", door3Result);
		return object;
	}

}
